Page({
  data: {
    topIndex:0,
    hotList: ['优选特工', '时令鲜果', '基地茶饮', '坚果果干', '品质粗粮','直销瓜果'],
    background: ['../../images/1.jpg', '../../images/2.jpg', '../../images/4.jpg'],
    indicatorDots: true,
    vertical: false,
    autoplay: true,
    circular: true,
    interval: 2000,
    duration: 500,
    previousMargin: 0,
    nextMargin: 0,
  },
  //响应点击导航栏
  tagTap: function (e) {
    var that = this;
    var idx = e.currentTarget.dataset.idx;
    that.setData({
      topIndex: e.currentTarget.dataset.idx,
    })
  },
})